package com.java.thread.group.lambda;

public class Test {
    public static void main(String[] args)  {
        // 使⽤匿名类创建 Runnable ⼦类对象
        // 使⽤ lambda 表达式创建 Runnable ⼦类对象
        Thread t3 = new Thread(() -> System.out.println("使⽤匿名类创建 Thread ⼦类对象"));
        Thread t4 = new Thread(() -> {
            System.out.println("使⽤匿名类创建 Thread ⼦类对象");
        });
    }
}
